<?php

namespace Transform;

class MessageTransform extends Transform
{
    public function listView()
    {
        return [
            'allows' => ['id', 'title','content','img','create_time', 'is_read','type'],
        ];
    }

    public function detail()
    {
        return [
            'allows' => ['id', 'title','content','img','create_time', 'send_id','type'],
        ];   
    }
}